package com.zyz.I_多线程.Lambada表达式;

/**
 * @author: vick
 * @Date: 2025/3/21
 * @Description:
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        /*UserService userService = new UserService() {
            @Override
            public void query() {
                System.out.println("查询");
            }
        };
        userService.query();*/

        UserService userService = () -> {
            System.out.println("查询");
        };
        userService.query();
    }
}
